/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Persistencia;

import javax.swing.JOptionPane;

/**
 *
 * @author marco
 */
public class Singleton_Conexion {

    private String protocolo;
    private String driver;
    private static Singleton_Conexion Instancia = null;

    private synchronized static void crearInstancia() {
        if (Instancia == null) {
            Instancia = new Singleton_Conexion();
        }
    }

    public static Singleton_Conexion getInstancia() {
        if (Instancia == null) {
            crearInstancia();
        }
        return Instancia;
    }

    public Singleton_Conexion() {



        //protocolo = "jdbc:sqlite:" + System.getProperty("user.dir") + "\\src\\Persistencia\\ActionTrackerBD.sqlite";

        //ESTA ES LA QUE FUNCAAAAAAAAAAAAAAAAA PARA EL BUILD 
        protocolo="jdbc:sqlite:lib\\ActionTrackerBD.sqlite";

        driver = "org.sqlite.JDBC";

    }

    public String getProtocolo() {
        return protocolo;
    }

    public String getDriver() {
        return driver;
    }
}
